home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / std / c / 415 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  39 lines

  1. Path: solon.com!not-for-mail
  2. From: seebs@solutions.solon.com (Peter Seebach)
  3. Newsgroups: comp.std.c
  4. Subject: 6.1.7 typo (?) ... reported yet?
  5. Date: 16 Feb 1996 15:09:45 -0600
  6. Organization: Usenet Fact Police (Undercover)
  7. Message-ID: <4g2rqp$p5@solutions.solon.com>
  8. NNTP-Posting-Host: solutions.solon.com
  9.  
  10. I see two problems with 6.1.7.  First:
  11.  
  12.     If the characters ', \, ", or /* occur in the sequence between...
  13.  
  14. ... so since when is `/*' a character?  I don't think this is unclear,
  15. merely incorrect.  :)
  16.  
  17. The second:
  18.  
  19.     Header name preprocessing tokens shall only appear within a #include
  20.     preprocessing directive.
  21.  
  22. This worries me; is the following illegal?
  23.  
  24.     main() {
  25.         int i;
  26.         1<i>3;
  27.     }
  28.  
  29. It looks as though <i> is clearly a header-name preprocessing token,
  30. but I can't believe they meant to outlaw string literals as well,
  31. most of which look like legitimate header name tokens.
  32.  
  33. -s
  34. -- 
  35. Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
  36. C/Unix wizard -- C/Unix questions? Send mail for help.  No, really!
  37. FUCK the communications decency act.  Goddamned government.  [literally.]
  38. The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
  39.